package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_ResourceAbility", description = "生产资源产能")
@TableName(value = "Basic_ResourceAbility")
public class BasicResourceAbility extends FBaseEntity implements Serializable {


    
    @NotNull(message="[生产资源ID]不能为空")
    @ApiModelProperty("生产资源ID")
    @TableField(value = "resourceId")
    private Long resourceId;
    
    @NotNull(message="[工作日期]不能为空")
    @ApiModelProperty("工作日期")
    @TableField(value = "workDate")
    private Date workDate;
    
    @NotBlank(message="[工作时长/时]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("工作时长/时")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "hours")
    private String hours;






}

